﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTO;
using BUS;

public partial class GianHang : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            List<GianHangDTO> listGianHang = GianHangBUS.LayDanhSachGianHangTheoTinhTrang(true);
            CollectionPager2.PageSize = 9;
            CollectionPager2.DataSource = listGianHang;
            CollectionPager2.BindToControl = dtlGianHang;
            dtlGianHang.DataSource = CollectionPager2.DataSourcePaged;
           
        }
    }
}
